package com.yuxi.Service.Impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yuxi.Dao.InformationDao;
import com.yuxi.Entity.Information;
import com.yuxi.Entity.UserInfo;
import com.yuxi.Service.InformationService;
import com.yuxi.view.UserPowerView;
@Service
public class InformationServiceImpl implements InformationService{
	@Autowired
	private InformationDao informationDao;
	

	private Logger logger=LoggerFactory.getLogger(InformationServiceImpl.class);
	@Override
	public boolean updateInformation(Information information) {
		informationDao.modifyInformation(information);
		return false;
	}

	@Override
	public boolean delInformationById(int informationId) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void addInformation(Information information) {
		informationDao.addInformation(information);
		logger.info(information.toString());
	}

	

}
